import 'package:flutter/material.dart';

import 'fade_route.dart';

/// Navigator帮助类
class NavigatorUtil {
  // 页面跳转utils
  static void goPageByPush(BuildContext context, Widget widget) {
    Navigator.push(context, FadeRoute(builder: (context) {
      return widget;
    }));
    // Navigator.push(context, MaterialPageRoute(builder: (context) => widget));
  }
}
